home *** CD-ROM | disk | FTP | other *** search
- /*
-
- File: FindOpenDocFolder.h
-
- Contents: Utility routines for finding OpenDoc folders by looking
- in several places.
-
- Owned by: Troy Gaul
-
- Copyright: © 1996 Apple Computer, Inc. All rights reserved.
-
- Change History (most recent first):
-
- <1> 12/19/96 TJ first checked in
- 12/18/96 TAG Created.
-
- */
- #ifndef _FINDOPENDOCFOLDER_
- #define _FINDOPENDOCFOLDER_
-
- #ifndef __FOLDERS__
- #include <Folders.h>
- #endif
-
- //------------------------------------------------------------------------------
- // Constants
- //------------------------------------------------------------------------------
- enum
- {
- kOpenDocEditorsFolderType = 'oded', // Editors folder
- kOpenDocFolderType = 'odod', // OpenDoc folder (in Editors)
- kOpenDocShellPluginsFolderType = 'odsp', // Shell Plug-Ins folder
- kOpenDocLibrariesFolderType = 'odlb', // OpenDoc Libraries folder
- kOpenDocStationeryFolderType = 'odst' // Stationery
- };
-
- enum
- {
- kOpenDocFLDxResourceID = 128 // ID for your code's 'fld#' resource
- };
-
- //------------------------------------------------------------------------------
- // Functions
- //------------------------------------------------------------------------------
- extern pascal OSErr FindOpenDocFolder(short inVRefNum, OSType inFolderType, Boolean inCreateFolder,
- short* outFoundVRefNum, long* outFoundDirID);
-
- //------------------------------------------------------------------------------
- #endif